<?php
class widget_menu extends CWidget {
  public function run() {

    $categories = Category::model()->getCategories();    

    $this->render('widget_menu', array(
      'categories' => $categories
    ));
   
  }
}
?>